﻿using System.Configuration;

namespace netaddICTs.Umb.ProtectedMedia.Business.Configuration{
   
    public class Storage : ConfigurationElement {

        internal const string TypePropertyName = "type";

        [ConfigurationProperty(TypePropertyName, IsRequired = true, IsKey = false, IsDefaultCollection = false, DefaultValue = "VirtualDirectory|LocalFolder")]
        public string Type{
            get { return (string) base[TypePropertyName]; }
            set { base[TypePropertyName] = value; }
        }

        internal const string PathPropertyName = "path";

        [ConfigurationProperty(PathPropertyName, IsRequired = true, IsKey = false, IsDefaultCollection = false, DefaultValue = "/path")]
        public string Path{
            get { return (string) base[PathPropertyName]; }
            set { base[PathPropertyName] = value; }
        }
    }
}